﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using A5Lib;


namespace A5Site
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("Home.aspx");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            UserServices.UserServicesClient usc = new UserServices.UserServicesClient();
            bool result = usc.ValidateUser("user1", "password1");

            if (result)
            {
                Label1.Text += "Passed\n";
            }

            A5Lib.User u = usc.GetUser("user1");

            Label1.Text += u.Username + "\n" + u.Password;
        }
    }
}
